package one.stand.service;

import one.stand.model.live.WxShareDynamicModel;
import one.stand.request.ComponentProgramRequest;
import one.stand.request.ComponentVerifyTicketRequest;
import one.stand.request.wx.AuthSnsapiUserinfoRequest;
import one.stand.request.wx.ShareDynamicRequest;
import one.stand.request.wx.WxMsgRequest;
import one.stand.response.wx.AuthSnsapiUserinfoResponse;

/**
 * @author: QIK
 * @CreateDate: 2019/5/9 14:42
 */
public interface WxService {
    String wxcallback(ComponentVerifyTicketRequest request);

    String wxcallback(ComponentProgramRequest request);

    /**
     * auth2.0 授权
     * @param body
     * @return
     */
    AuthSnsapiUserinfoResponse wxAuth(AuthSnsapiUserinfoRequest body);

    WxShareDynamicModel queryUserShareDynamic(String toUserName);

    String getTicketToken(WxMsgRequest request);

    /**
     * 更新分享次数
     * @param request
     * @return
     */
    String updateShareNum(ShareDynamicRequest request);

    /**
     * 更新查看时间
     * @param request
     * @return
     */
    String updateSeeTime(ShareDynamicRequest request);

    String updateSeeNum(Integer dynamicId);

    /**
     * 发送小程序消息
     * @param openId
     * @param appIdSm
     * @param content
     */
    void sendSmMsg(String openId,String appIdSm,String content);
}
